package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.PcbaDeviceParamType;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface PcbaDeviceParamTypeService {

    /**
     * 根据设备类型查询
     *
     * @param pcbaDeviceTypeId
     * @return
     */
    List<PcbaDeviceParamType> getPcbaDeviceParamTypeByPcbaDeviceTypeId(HttpServletRequest request, Integer pcbaDeviceTypeId, String searchValue);

    /**
     * 删除
     *
     * @param pcbaDeviceParamTypeId
     * @return
     */
    Result deletePcbaDeviceParamType(Integer pcbaDeviceParamTypeId);

    /**
     * 新增或者修改
     *
     * @param pcbaDeviceParamType
     * @return
     */
    Result addOrUpdatePcbaDeviceParamType(String mode, PcbaDeviceParamType pcbaDeviceParamType);
}
